package rd.hardcore.ui.header.buttons 
{
	import aze.motion.eaze;
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	import flash.filters.ColorMatrixFilter;
	import flash.filters.DropShadowFilter;
	
	/**
	 * ...
	 * @author Romain Prache
	 */
	public class HeaderButton extends MovieClip
	{
		
		public var body	: MovieClip;
		
		private var shadow	: DropShadowFilter;
		
		public function HeaderButton() 
		{
			buttonMode 		= true;
			mouseChildren 	= false;
			
			addEventListener(MouseEvent.MOUSE_OVER, handleOver);
			addEventListener(MouseEvent.MOUSE_OUT, handleOut);
			
			shadow = new DropShadowFilter(1, 90, 0, .35, 5, 5, 1, 2);
			
			body.filters = [shadow];
			
		}
		
		private function handleOver(e:MouseEvent):void 
		{
			eaze(this).to(.4).colorMatrix(-.15);
		}
		
		private function handleOut(e:MouseEvent):void 
		{
			eaze(this).to(.3).colorMatrix(0);
		}
		
	}

}